package com.sunrise.xdoc.entity.store;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "store_chi_tiet_xuat_kho")
@Inheritance(strategy = InheritanceType.JOINED)
public class ChiTietXuatKho extends AbstractChiTietKho {
	private PhieuXuatKho phieuXuatKho;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "phieu_xuat_kho_id")
	@NotNull
	public PhieuXuatKho getPhieuXuatKho() {
		return phieuXuatKho;
	}

	public void setPhieuXuatKho(PhieuXuatKho phieuXuatKho) {
		this.phieuXuatKho = phieuXuatKho;
	}
}
